package com.awaken.content.service.impl;

import com.awaken.content.models.dto.DemoDTO;
import com.awaken.content.models.request.DemoRequest;
import com.awaken.content.service.impl.DemoBusinessService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * Demo业务服务实现类
 *
 * @author awaken-lin
 */
@Slf4j
@Service
public class DemoBusinessServiceImpl implements DemoBusinessService {

    @Override
    public DemoDTO processDemo(DemoRequest request) {
        log.info("处理Demo请求: {}", request);
        DemoDTO response = new DemoDTO();
        response.setId(1L);
        response.setMessage("请求处理成功");
        response.setStatus("SUCCESS");
        return response;
    }

    @Override
    public DemoDTO getDemoInfo(Long id) {
        log.info("获取Demo信息: {}", id);
        DemoDTO response = new DemoDTO();
        response.setId(id);
        response.setMessage("获取Demo信息成功");
        response.setStatus("SUCCESS");
        return response;
    }

    @Override
    public String healthCheck() {
        log.info("执行健康检查");
        return "Demo服务运行正常";
    }
} 